package com.xiaoq.helper.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xiaoq.helper.entity.HelperEntity;
import com.xiaoq.helper.repository.IHelperRepository;
import com.xiaoq.helper.service.IHelperServcie;

@Service
public class HelperServcieImpl implements IHelperServcie {
	
	@Autowired
	private IHelperRepository helperRep;

	@Override
	public boolean save(HelperEntity helper) {
		return helperRep.save(helper);
	}

	@Override
	public List<HelperEntity> findHelper() {
		return helperRep.findHelper();
	}

	@Override
	public List<HelperEntity> findByQuery(String query) {
		return helperRep.findByQuery(query);
	}

}
